//
//  WATFBaseScrollViewController.swift
//  WiFiFaster
//
//  Created by one on 2023/12/28.
//

import UIKit

class WATFBaseScrollViewController: WATFBaseViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        watf_scrollViews()
    }
    
    @objc func watf_scrollViews()  {
        view.addSubview(watf_scrollView)
        watf_scrollView.addSubview(watf_contentView)
        watf_contentView.snp.makeConstraints { make in
            make.left.width.bottom.equalToSuperview()
            make.top.equalToSuperview()
        }
    }
    lazy var watf_scrollView: UIScrollView = {
        let watf_scrollView = UIScrollView(frame: watf_setScrollRect())
        watf_scrollView.showsVerticalScrollIndicator = false
        watf_scrollView.showsHorizontalScrollIndicator = false
        watf_scrollView.contentInsetAdjustmentBehavior = .never
        return watf_scrollView
    }()
    lazy var watf_contentView: UIView = {
        let watf_contentView = UIView()
        return watf_contentView
    }()
    func watf_setScrollRect() -> CGRect {
        return CGRect(x: 0, y: WATFCommon.watf_navHegiht, width: watf_SCREEN_WIDTH, height: watf_SCREEN_HEIGHT-(WATFCommon.watf_navHegiht))
    }
    
    
}
